Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent multiple identical compilations via watch startTime #250

Merged
merged 1 commit into from
Feb 9, 2018

Conversation

shellscape
Copy link
Contributor

What kind of change does this PR introduce?

An inconvenience/bug fix and introduction of a new option.

Did you add tests for your changes?

n/a

Summary

This mimics the fix found in ff0000-ad-tech/wp-plugin-watch-offset which was the result of a long-standing bug in watchpack in webpack/watchpack/issues/25. It resolves the endless - or random multiple - compile issue by advancing the time for watching and stats startTime. This is introduced through the watchOffset option, which can be set to 0 to disable prevention and restore original behavior.

Does this PR introduce a breaking change?

I do not believe so. It's unlikely.

Other information

@shellscape
Copy link
Contributor Author

It's been some weeks since this was opened and webpack/watchpack/issues/25 is still an ongoing issue with no resolution. This has been merged as a stop-gap until watchpack is updated to handle the scenario. Once that issue is resolved, this change will be reverted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant